<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="portlet box green">
	<div class="portlet-title">
		<div class="caption">
			<i class="fa fa-gift"></i>账号设置
		</div>
	</div>
	<div class="portlet-body form">
		<form id="accountForm" class="form-horizontal form-bordered"
			action="/account/save" method="post">
			<div class="form-group">
				<label class="col-md-3 control-label">账户名:</label>
				<div class="col-md-4">
					<input type="text" name="name" class="form-control"
						value="${account.name}" maxlength="45" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">账户编号:</label>
				<div class="col-md-4">
					<input type="text" name="code" class="form-control"
						value="${account.code}" maxlength="45" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">店铺名称:</label>
				<div class="col-md-4">
					<input type="text" name="shopname" class="form-control"
						value="${account.shopname}" maxlength="45" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">店铺状态:</label>
				<div class="col-md-4">
						<select name="username" class="form-control">
						<option value="${account.username}">${account.username}</option>
						<option value="启用">启用</option>
						<option value="禁用">禁用</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">eBay token/Amazon sellerid:</label>
				<div class="col-md-4">
					<input type="text" name="orderApi" class="form-control"
						value="${account.orderApi}" maxlength="1000" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">Amazon MarketplaceId:</label>
				<div class="col-md-4">
					<input type="text" name="shelvesApi" class="form-control"
						value="${account.shelvesApi}" maxlength="100" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">平台id:</label>
				<div class="col-md-4">
					<select name="platformId" class="form-control">
						<option value="${account.platformId}">${account.platform.name}</option>
						<option value="1">eBay</option>
						<option value="2">亚马逊</option>
					</select>
				</div>
			</div>
			<div class="form-actions">
				<div class="col-md-9 col-md-offset-3">
					<button type="button" class="btn btn-primary" onclick="save(this)">
						<spring:message code="btn.save"></spring:message>
					</button>
					<button type="reset" class="btn btn-default" onclick="cancel()">
						<spring:message code="btn.return"></spring:message>
					</button>
				</div>
			</div>
			<input type="hidden" name="id" value="${account.id}">
		</form>
	</div>
</div>
<script type="text/javascript"
	src="<c:url value="/static/custom/datepicker-util.js"></c:url>"></script>
<script type="text/javascript">
	$(function() {
		$('#accountForm').validate();
	});
</script>